#ifndef JECHARTS_H
#define JECHARTS_H
#include <QString>
#include <QStringList>
#include <QByteArray>
#include <QDateTime>
#include <QObject>
#include "Temperature/tempmanager.h"

class JECharts : public QObject
{
    Q_OBJECT
public:
    JECharts(QObject* parent = NULL);
    ~JECharts();
    QByteArray getEchartJson(QDate startDate, QDate endDate);//默认查看七日数据,需初始化legendList(设备名),devList(设备号)的对应关系
    QByteArray getEchartRst();
    QByteArray title_text;
    QByteArray title_subtext;
    QByteArray trigger;
    QStringList legendList;
    QStringList devList;
    bool showToolbox;

public slots:
    void creatEchartJson(QDate startDate, QDate endDate);

signals:
    void updateTaskProgress(int);

private:
    TempManager* tManager;
    QByteArray echartRst;
    int progress;
};

#endif // JECHARTS_H
